<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>帮帮网</title>
<link href="default.css" media="screen" rel="stylesheet" />
<!-- 引入 jQuery --> 
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>  -->
<script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<!--<script type="text/javascript" src="JS/prototype.js"></script>-->
<script type="text/javascript" src="JS/httpRequest.js"></script>
<script type="text/javascript" src="JS/cookie.js"></script>
<script type="text/javascript">  
//等待dom元素加载完毕.  
$(document).ready(function(){ 
	
	$("#left_bar ul li").click(function(){
		if($(this).hasClass("selector_on"))
		{
			
		}
		else
		{
			var sel_on = $("#left_bar .selector_on");
			sel_on.addClass("selector_off");
			sel_on.removeClass("selector_on");
			$(this).addClass("selector_on");
			$(this).removeClass("selector_off");
			//todo 刷新任务推送内容
		}
	});

	$("#selector ul li").click(function(){
		if($(this).hasClass("selector_on"))
		{
			
		}
		else
		{
			var sel_on = $("#selector .selector_on");
			sel_on.addClass("selector_off");
			sel_on.removeClass("selector_on");
			$(this).addClass("selector_on");
			$(this).removeClass("selector_off");
			//todo 刷新任务推送内容
		}
	});

});  
function getShopList(areaid)
{
	//alert(areaid);
	var shopsDiv=document.getElementById('shops');
	//刷新前 先清空子节点
	var childs = shopsDiv.childNodes;
	for(var i=childs.length-1; i>=0; i--){
		shopsDiv.removeChild(childs[i]);
	}
	
	var url="shop/shop.php?action=getShopList";
	var para="&areaid="+areaid;
	var resp=SendPostRequest(url,para);
	alert(resp);
	//resp="("+resp+")";
	if(resp!=null || resp != 'false')
	{
			eval("List="+resp);
	
	
	
	}
}


</script>  
</head>
<body onload="showAllReqList()">
  <div id="all">
    <div id="header">
        <div id="inner_header" class="central_fixed_width">
			<img src='imgpick/uploads/logo.jpg'/> 
		    <h1 class="logo">帮帮网</h1>
            <div id="user_status"><a href="login.htm">登陆</a>||<a href="register.html">注册</a></div>
            <ul id="nav_bar">
                <li><a href="activity/activity.html"><span class="nav_item">活动</span></a></li>
                <li><a href="index.html"><span class="nav_item">悬赏求助大厅</span></a></li>
                <li><a href="myspace.html"><span class="nav_item">个人主页</span></a></li>
                <li><a href="dianping.html"><span class="nav_item">点评</span></a></li>
                <li><a href="novel.html"><span class="nav_item">小说</span></a></li>
                <li class="clear"></li>
            </ul>
        </div>
    </div>
    
    <div id="content" class="central_fixed_width">

        <div class="content_parent">
			<div id="left_bar">
                    <ul>
                        <li class="selector_off" onclick="getShopList(1)">华联</li>
                        <li class="selector_off" onclick="getShopList(2)">商业街</li>
                        <li class="selector_off" onclick="getShopList(3)">拖鞋门口饭店</li>
                        <li class="selector_off" onclick="getShopList(4)">一食堂</li>
                        <li class="selector_off" onclick="getShopList(5)">二食堂</li>
                        <li class="selector_off" onclick="getShopList(6)">三食堂</li>
                        <li class="selector_off" onclick="getShopList(7)">四食堂以及吉姆利得</li>
                        <li class="selector_off" onclick="getShopList(8)">五食堂以及咖啡屋</li>
                        <li class="selector_off" onclick="getShopList(9)">学服</li>
                        <li class="selector_off" onclick="getShopList(10)">暂未收录店铺</li>
					</ul>
			</div>

            <div class="main_column2">

                <div id="selector">
                    <ul>
                        <li class="selector_on" onclick="showiFocusList()">待扩展</li>
                        <li class="selector_off" onclick="showiApplyList()">待扩展</li>
                    </ul>
                    <div class="clear"></div>
                </div>

                <div id="shops">
                    <div class="shop">
						【店铺名称 href=shop】 【星级】 【总评论数】 【总回帖数】
                    </div>
                    <div class="shop">
						【店铺名称 href=shop】 【星级】 【总评论数】 【总回帖数】
                    </div>
                    <div class="shop">
						【店铺名称 href=shop】 【星级】 【总评论数】 【总回帖数】
                    </div>
                </div>

            </div>

            <div class="clear"></div>
        </div>
        
        
    </div>
    
    <div id="footer">
        <div id="inner_footer" class="central_fixed_width">


            <div class="footer_links">
                &copy; 2011 帮帮网 All rights reserved.
            </div>
            <div class="clear"></div>
            
        </div>
    </div>
  </div>
</body>
</html>

